﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Data_Structures_and_Algorithms.linear_list
{
    public interface ILinearList
    {
        /// <summary>
        /// 显示
        /// </summary>
        void Display();
        /// <summary>
        /// 插入
        /// </summary>
        /// <param name="index"></param>
        /// <param name="data"></param>
        void Insert(int index, object data);
        /// <summary>
        /// 查找
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        int Find(object data);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="index"></param>
        void Delete(int index);
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="index"></param>
        /// <param name="data"></param>
        void Update(int index, object data);
        /// <summary>
        /// 查找
        /// </summary>
        /// <param name="index"></param>
        /// <returns></returns>
        object FindAt(int index);
    }
}
